package me.maiz.lab.batchdemo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import me.maiz.lab.batchdemo.entity.User;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface UserMapper extends BaseMapper<User> {

    @Update("update bp_user set credit=#{credit},level=#{credit} where user_id=#{userId}")
    public void updateUserById(User user);
}
